package pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class StuScoreM {


    private String  id;

    @NotNull(message = "考试类型不能为空")
    private String examType;

    private Integer stuId;

    private Integer term;
    @NotNull(message = "专业不能为空")
    private String major;
    @NotNull(message = "姓名不能为空")
    private String name;
    /**
     * 整数精度为10
     * 小数进度为1
     */
    @Digits(integer = 10,fraction = 1)
    private BigDecimal courseGrade;


}
